
#ifndef EFFECTMANAGER_H
#define EFFECTMANAGER_H

#include <QtCore/QMap>
#include <QtCore/QString>

#include <QtOpenGL/QGLContext>

#include "Effect.h"

class EffectManager
{
public:
	EffectManager();

	void setGLContext(const QGLContext* glContext) { m_glContext = glContext; }

	void loadEffects(const QString& listFilename);

	void setActiveEffect(const QString& name);

	const QList<Effect>& effects() { return m_effects; }

private:
	QList<Effect> m_effects;
	Effect* m_activeEffect;

	const QGLContext* m_glContext;
};

#endif
